//
//  CheckstandPurViewController.m
//  GLGW_Shoping
//
//  Created by yang on 2018/11/15.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "CheckstandPurViewController.h"
#import "CheckstanPurViewModel.h"

@interface CheckstandPurViewController ()
@property (nonatomic,strong) CheckstanPurViewModel * checkstanViewModel;
@end

@implementation CheckstandPurViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"收银台";
    self.isShowLiftBack = NO;
    self.checkstanViewModel = [[CheckstanPurViewModel alloc] initWithViewToViewModel:self.tableView theSuperView:self.view];
    [self addNavigationItemWithImageNames:@[@"jiantou"] isLeft:YES target:self action:@selector(popAction) tags:@[@777]];
}

-(void)popAction{
    [self AlertWithTitle:@"确认放弃支付吗" message:@"" andOthers:@[@"确定",@"取消"] animated:YES action:^(NSInteger index) {
        if (index == 0) {
            [self.navigationController popViewControllerAnimated:YES];
        }
    }];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
